package com.clive.vo;

public class DishResult {
	private Integer code;
	private String massage;
	private Object data;
	
	public static DishResult ok(Object data){
		DishResult result = new DishResult(200,"成功",data);
		return result;
	}
	public static DishResult error(Object data){
		DishResult result = new DishResult(500,"失败",data);
		return result;
	}
	
	public DishResult(Integer code,String message,Object data) {
		this.code = code;
		this.massage = message;
		this.data = data;
	}


	public Integer getCode() {
		return code;
	}
	public void setCode(Integer code) {
		this.code = code;
	}
	public String getMassage() {
		return massage;
	}
	public void setMassage(String massage) {
		this.massage = massage;
	}
	public Object getData() {
		return data;
	}
	public void setData(Object data) {
		this.data = data;
	}
	@Override
	public String toString() {
		return "DishResult [code=" + code + ", massage=" + massage + ", data=" + data + "]";
	}
	
}
